package com.kaishengit.web.listener;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class MyHttpSessionListener implements HttpSessionListener{

	public void sessionCreated(HttpSessionEvent event) {
		HttpSession session =event.getSession();
		System.out.println("session created~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
	}

	public void sessionDestroyed(HttpSessionEvent event) {
		HttpSession session=event.getSession();
		session.invalidate();
		System.out.println("session destroyed##############################");
	}
	

}
